const Core = require('@alicloud/pop-core');

var client = new Core({
    accessKeyId: 'LTAI4FkLvc7eH4nCQg69oMNx',
    accessKeySecret: 'YQ2iBvyv55ymJLKJvqlHJrhb0agGgj',
    endpoint: 'https://dysmsapi.aliyuncs.com',
    apiVersion: '2017-05-25'
});

var params = {
    "RegionId": "Default",
    "PhoneNumbers": "13645188453",
    "SignName": "智象科技",
    "TemplateCode": "SMS_181191316",
    "TemplateParam": "{code:8224}"
}

var requestOption = {
    method: 'POST'
};

client.request('SendSms', params, requestOption).then((result) => {
    console.log(JSON.stringify(result));
}, (ex) => {
    console.log(ex);
})
